package com.yhx.controller;

import com.yhx.iservice.DemoService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DemoController {
    @Reference
    private DemoService demoService;
    @GetMapping
    public String getInfo(){
        return demoService.getInfo();
    }
}
